//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_getrandomrange.sqf"
#include "x_setup.sqf"

// gets a random number in a specific range
// parameters: number from, number to (second number must be greater than first)
// example: _random_number = [30,150] call FUNC(GetRandomRange);
private ["_num1","_num2","_ra"];
PARAMS_2(_num1,_num2);
_ra = _num2 - _num1;
_ra = random _ra;
(_num1 + _ra)